package com.example.studykt.adapter;

import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.studykt.R;
import com.example.studykt.entity.PhoneDtoBus;


/**
 * on 2019/9/21
 */
public class MailAdapter extends BaseQuickAdapter {

    public MailAdapter() {
        super(R.layout.adapter_mail);
    }

    @Override
    protected void convert(BaseViewHolder helper, Object item) {
        PhoneDtoBus bean=(PhoneDtoBus)item;

        TextView name=helper.getView(R.id.name);
        TextView phone=helper.getView(R.id.phone);


        name.setText("姓名:"+bean.getName());
        phone.setText("手机:"+bean.getTelPhone());

    }


}
